home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_7.adf / Source_And_Examples / examples / swap.c < prev   
Text File  |  1992-07-30  |  81b  |  8 lines

  1. void swap(int *x, int *y)
  2. {
  3.    int tmp;
  4.     
  5.    tmp = *x;
  6.    *x = *y;
  7.    *y = tmp;
  8. }